package mywebapp.tools.jsf;

public class MessageGlobal
{
  protected static String nl;
  public static synchronized MessageGlobal create(String lineSeparator)
  {
    nl = lineSeparator;
    MessageGlobal result = new MessageGlobal();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = NL + "delete= DELETE" + NL + "update= UPDATE" + NL + "edit= EDIT" + NL + "add = ADD" + NL + "detailError=Certains Champs ne sont pas remplie" + NL + "summaryError=Champ incorrect !!" + NL + "detailErrorInt= Je ne suis pas un entier, et alors ca te derange ?" + NL + "summaryErrorInt= Je ne suis pas un entier, et alors ca te derange ?" + NL + "detailErrorPass= Erreur Syntaxe Password" + NL + "summaryErrorPass= Erreur Syntaxe Password" + NL + "detailErrorDate= Erreur Syntaxe Date => DD-MM-YYYY format" + NL + "summaryErrorDate= Erreur Syntaxe Date DD-MM-YYYY format" + NL + "failedAction= Failed Form !!!!!!!!" + NL + "errorTitle= ErrorPage";
  protected final String TEXT_2 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
